package com.xln.furns.service.impl;

import com.xln.furns.dao.LoginDAO;
import com.xln.furns.dao.impl.LoginDAOimpl;
import com.xln.furns.entity.Member;
import com.xln.furns.service.LoginService;

public class LoginServiceimpl implements LoginService {


    @Override
    public Member login(Member member) {

        LoginDAO loginDAO = new LoginDAOimpl();

        return loginDAO.queryMemberByUsernameAndPassword(member.getUsername(), member.getPassword());
    }
}
